package com.company;

class Box<T>{
    private T content;

    public T getContent(){return  content;}
    public void setContent(T content){this.content=content;}
}
public class Tdemo {
    public static void main(String[] args) {
        Box<String> box=new Box<String>();
        box.setContent("hello");
        String content =box.getContent();
        System.out.println(content);

        Box<Integer> box1=new Box<>();
        box1.setContent(45);
        Integer content1 =box1.getContent();
        System.out.println(content1);

        Box<StudentScore> box3 =new Box<>();
        box3.setContent(new StudentScore("004", "赵六", "女", 95, 89, 94));
        StudentScore content2=box3.getContent();
        System.out.println(content2);
    }
}
